package com.yfqy.admin.service;

import com.github.pagehelper.PageInfo;
import com.yfqy.admin.domain.dto.product.ProductQuery;
import com.yfqy.admin.domain.dto.product.ProductSkuDTO;
import com.yfqy.admin.domain.dto.product.ProductSpuDTO;
import com.yfqy.admin.domain.dto.product.UpAndDownProduct;

import java.util.List;

public interface ProductService {


    int addProduct(ProductSpuDTO addProduct);

    ProductSpuDTO detail(Long id);

    PageInfo<ProductSpuDTO> pageList(ProductQuery productQuery);

    int upAndDown(UpAndDownProduct upAndDownProduct);

    int modifyProduct(ProductSpuDTO modifyProduct);

    List<ProductSkuDTO> skuList(Long spuId);
}
